<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户登录页面</title>
    <!--    新bootstraps核心CSS文件-->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css">
    <!--    popper.min.js用于弹窗，提示，下拉菜单-->
    <script src="https://cdn.staticfile.org/popper.js/2.9.3/umd/popper.min.js"></script>
    <!--最新的bootstrap5核心JavaScript文件-->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.min.js"></script>
</head>
<body>
<!--用户登录form表单-->
<form th:action="@{/login}" method="post">
    <div class="mb-3">
        <label for="username" class="form-lable">用户名</label>
        <input type="text"class="form-control" id="username" name="username">
    </div>
    <div class="mb-3">
        <label for="password" class="form-lable">密码</label>
        <input type="password" class="form-control" id="password" name="password">
    </div>
    <div class="checkbox mb-3">
        <lable>
            <input type="checkbox" name="rememberme">记住我
        </lable>
    </div>
    <button type="submit" class="btn btn-primary">登录</button>
    <p th:if="${param.error}">用户名或密码错误，登陆失败！</p>
</form>
<p><span th:text="${#dates.createNow()}"></span></p>
</body>
</html>


<!--<form th:action="@{/login}>" method=""post>-->
<!--    <div class="mb-3">-->
<!--        <label for="username" class="from-lable">用户名</label>-->
<!--        <input type="text" class="from-control" id="username" name="username">-->
<!--    </div>-->

<!--    <div class="mb-3">-->
<!--        <label for="password" class="from-lable">密码</label>-->
<!--        <input type="password" class="from-control" id="password" name="password">-->
<!--    </div>-->
<!--    <div class="checkbox mb-3">-->
<!--        <lable>-->
<!--            <input type="checkbox" name="rememberme">记住我-->
<!--        </lable>-->
<!--    </div>-->
<!--    <button type="submit" class="btn btn-primary">登录</button>-->
<!--    <p th:if="${param.error}">用户名或密码错误，登陆失败！</p>-->
<!--</form>-->
<!--<P><span th:text="${#dates.createNow()}"></span></P>-->
